package cn.yyx.empservice.entity.employee;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sun
 * @since 2023-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_employee")
@ApiModel(value="Employee对象", description="")
public class Employee implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    private String name;

    private String address;

    private String birthDate;

    private String ethnicity;

    private String sex;

    private String idNumber;

    private String cardImg;

    private String pwd;

    private String job;

    private Integer type;

    private Double sal;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date hiredate;

    private String phone;

    private Integer delstatus;

    private String education;

    private String intro;


}
